
local slk = require 'jass.slk'

local symbols        = require 'symbol.unit'
--获取物体编辑器上的单位数据
function get_unit_slk2(unitid,key)
    local id = symbols[unitid] or FourCC(unitid)
    local info = slk['unit'][id]
    if info == nil then 
        return 
    end 
    local value = info[key]

    if type(value) == 'number' then 
        return tonumber(value) or value 
    end 

    return value
end 
